
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    //计算1~100的和
    int sum = 0;
    for (int i = 1; i <= 100; i++) {
        sum += i;
    }
    //循环接收输出和
%>
<%=sum %>
</body>
</html>
